@import 'clear.less';

//最外层的包裹元素
#wrapper {

    //头部
    #header {

        //上面部分
        .headTop {
            background: #eaeaea;
            height: 30px;

            //版心元素
            .headTopMain {
                width: 1200px;
                margin: 0 auto;
                height: 30px;
                line-height: 30px;
                .clearfix();

                //左侧
                .left {
                    float: left;
                    h5 {
                        float: left;
                        margin-right: 5px;
                    }

                    p {
                        float: left;

                        a {
                            &:first-child {
                                border-right: 1px solid #b3aeae;
                                margin-right: 0px;
                                padding-right: 5px;
                            }
                        }
                    }

                }

                //右侧
                .right {
                    float: right;
                    padding-right: 30px;
                    nav {
                        font-size: 0px;

                        a {
                            font-size: 12px;
                            margin-right: 10px;
                            padding-right: 10px;
                            border-right: 1px solid #b3aeae;

                            &:last-child {
                                margin-right: 0px;
                                padding-right: 0px;
                                border-right: none;
                            }
                        }
                    }
                }

            }
        }

        //下面部分
        .headBottom {

            //版心
            .headBottomMain {
                width: 1200px;
                margin: 0 auto;
                .clearfix();

                .logo {
                    float: left;

                    a {
                        img {
                            width: 175px;
                            height: 56px;
                            margin: 25px 45px;

                        }
                    }
                }

                .search {
                    float: right;
                    margin-top: 35px;

                    input {
                        &:first-child {
                            box-sizing: border-box;
                            width: 490px;
                            height: 32px;
                            padding: 0 4px;
                            border: 3px solid #ea4a36;
                            float: left;
                        }

                        &:last-child {
                            width: 48px;
                            height: 32px;
                            color: #fff;
                            background: #ea4a36;
                            border: none;
                        }

                        //修饰placehoder
                        &::placeholder {
                            color: yellowgreen;
                        }
                    }
                }
            }
        }
    }

    //导航
    #navWrap {
        border-bottom: 2px solid #e1251b;
        margin: 0 auto;

        //版心元素
        .navWrapMain {
            width: 1200px;
            margin: 0 auto;
            .clearfix();

            a {
                margin: 0 22px;
                font-size: 16px;
                color: #333;
                float: left;
                line-height: 50px;

                &:first-child {
                    width: 210px;
                    height: 50px;
                    background: #e1251b;
                    color: #fff;
                    font-size: 14px;
                    font-weight: bold;
                    float: left;
                    text-align: center;
                    line-height: 50px;
                }
            }
        }
    }

    //内容开始区域
    #content {
        //版心内容
        .contentMain {
            //路径导航
            width: 1200px;
            margin: 15px auto 0 auto;

            .navPath {
                padding: 9px 15px 9 0;
                font-size: 0px;

                a {
                    font-size: 12px;
                }

                i {
                    padding: 0 5px;
                    font-size: 12px;
                }
            }

        }

        //中间区
        #center {
            //左侧放大镜
            width: 1200px;
            margin: 25px 0 35px 30px;
            .clearfix();

            #left {
                width: 400px;
                float: left;

                #leftTop {
                    width: 400px;
                    position: relative;

                    #smallPic {
                        width: 400px;
                        height: 400px;
                        border: 1px solid #dfdfdf;
                        position: relative;



                        .mask {
                            width: 200px;
                            height: 200px;
                            background: rgba(255, 255, 255, .5);
                            border: 1px solid #ddd;
                            position: absolute;
                            left: 0px;
                            top: 0px;

                        }
                    }

                    #bigPic {
                        width: 400px;
                        height: 400px;
                        border: 1px solid #ddd;
                        left: 420px;
                        top: 0px;
                        position: absolute;
                        overflow: hidden;

                        //大图片
                        img {
                            width: 800px;
                            height: 800px;
                            position: absolute;
                            left: 0px;
                            top: 0px;
                        }
                    }
                }

                #leftBottom {
                    width: 400px;
                    margin-top: 5px;

                    a {
                        width: 10px;
                        height: 54px;
                        background: #ebebeb;
                        border: 1px solid #ccc;
                        text-align: center;
                        line-height: 54px;
                        float: left;

                        &:first-child {
                            margin-right: 4px;
                        }
                    }

                    #picList {
                        width: 372px;
                        height: 56px;
                        float: left;
                        overflow: hidden;
                        font-size: 0px;
                        position: relative;

                        ul {
                            white-space: nowrap;
                            position: absolute;
                            left: 0px;
                            transition: 0.5s;

                            li {
                                width: 50px;
                                height: 50px;
                                border: 1px solid #ccc;
                                padding: 2px;
                                margin-right: 20px;
                                display: inline-block;

                                img {
                                    width: 50px;
                                    height: 50px;

                                }
                            }
                        }
                    }
                }
            }

            #right {
                width: 700px;
                float: right;

                .rightTop {
                    h3 {
                        font-size: 14px;
                        line-height: 21px;
                        margin-top: 15px;
                    }

                    >p {
                        color: #e12228;
                        margin-top: 15px;
                    }

                    .priceWrap {
                        margin-top: 10px;
                        line-height: 28px;
                        background: #fee9ec;
                        padding: 7px;

                        .priceTop {
                            .clearfix();

                            //价格
                            >span {
                                margin-right: 15px;
                                float: left;
                            }

                            //中间
                            .price {
                                float: left;
                                color: #cc1122;

                                >span {
                                    font-size: 16px;
                                    float: left;
                                }

                                p {
                                    font-size: 24px;
                                    float: left;
                                    font-weight: bold;
                                }

                                i {
                                    font-size: 12px;
                                    color: #cc1122;
                                    float: left;
                                }
                            }

                            //累计评价
                            >p {
                                float: right;

                            }
                        }

                        .priceBottom {
                            .clearfix();

                            //促销
                            >span {
                                float: left;
                                margin-right: 15px;
                            }

                            //加价购
                            p {
                                width: 520px;
                                line-height: 28px;
                                float: left;

                                >span {
                                    color: #999;

                                    &:first-child {
                                        background: #c81623;
                                        padding: 3px;
                                        color: #fff;
                                    }
                                }
                            }

                        }

                    }

                    .support {
                        margin-top: 10px;
                        line-height: 28px;
                        .clearfix();

                        >span {
                            margin-right: 15px;
                            float: left;
                        }

                        >p {
                            float: left;
                            color: #999;
                            width: 520px;
                        }
                    }

                    .address {
                        border-bottom: 1px solid #ededed;
                        padding-bottom: 5px;
                        line-height: 28px;
                        margin-top: 10px;
                        .clearfix();

                        >span {
                            margin-right: 15px;
                            float: left;
                        }

                        >p {
                            float: left;
                            width: 520px;
                            color: #999;
                        }
                    }
                }

                .rightBottom {
                    margin-top: 10px;
                    line-height: 28px;

                    .choose {
                        .clearfix();

                        .mark {
                            height: 30px;
                            background: snow;
                            border: 1px solid #ddd;
                            padding: 0 20px;
                            margin-right: 20px;
                            text-align: center;
                            line-height: 30px;
                            float: left;

                            a {
                                color: red;
                                margin-left: 20px;
                            }
                        }
                    }

                    .chooseWrap {
                        dl {
                            margin-top: 13px;
                            margin-bottom: 13px;
                            .clearfix();

                            dt {
                                margin-right: 15px;
                                float: left;
                            }

                            dd {
                                float: left;
                                margin-right: 5px;
                                color: #666;
                                line-height: 24px;
                                padding: 2px 14px;
                                border-top: 1px solid #eee;
                                border-left: 1px solid #eee;
                                border-right: 1px solid #bbb;
                                border-bottom: 1px solid #bbb;

                                &:first-of-type {
                                    color: red;
                                }

                            }
                        }
                    }

                    .addCar {
                        .clearfix();

                        .count {
                            width: 55px;
                            margin-right: 15px;
                            position: relative;
                            float: left;

                            input {
                                width: 38px;
                                height: 37px;
                                border: 1px solid #ddd;
                                color: #555;
                            }

                            a {
                                width: 15px;
                                height: 18px;
                                color: #666;
                                background: #f1f1f1;
                                position: absolute;
                                right: 1px;
                                text-align: center;
                                line-height: 18px;
                                border: 1px solid #ddd;

                                &:first-child {
                                    top: 0px;
                                }

                                &:last-child {
                                    top: 20px;
                                    border-top: none;
                                }
                            }
                        }

                        button {
                            padding-left: 25px;
                            padding-right: 25px;
                            height: 36px;
                            font-size: 16px;
                            background: #e1251b;
                            color: #fff;
                            border: none;
                            float: left;
                        }

                    }
                }



            }


        }

        .goodsDetailWarp {
            width: 1200px;
            margin: 30px auto 0;

            .leftAside {
                width: 210px;
                border: 1px solid #ccc;
                .clearfix();
                height: 1000px;
                float: left;
                .asideTop {
                    .clearfix();

                    h4 {
                        width: 105px;
                        height: 40px;
                        background: #fff;
                        float: left;
                        text-align: center;
                        line-height: 40px;
                        border-bottom: 1px solid #ccc;
                        border-top: 3px solid #fff;

                        &.active {
                            border-top: 3px solid #e1251b;
                            width: 105px;
                            line-height: 37px;
                            text-align: center;
                            line-height: 40px;
                            border-bottom: none;
                        }
                    }
                }

                .aslideContent {
                    padding: 10px;

                    div {
                        display: none;
                        &.active {
                            display: block;
                            ul {
                                &.goodslist1 {
                                    li {
                                        width: 50%;
                                        border-bottom: 1px dashed #ededed;
                                        line-height: 28px;
                                        float: left;
                                    }
                                }

                                &.goodslist2 {
                                    margin: 5px 0 15px;

                                    li {
                                        border-bottom: 1px solid #ededed;

                                        >img {
                                            width: 152px;
                                        }

                                        >span {}

                                        p {
                                            font-size: 16px;
                                            color: #c81623;
                                        }

                                        .button {
                                            margin-top: 5px;
                                            margin-bottom: 5px;
                                            text-align: center;

                                            >a {
                                                color: #8c8c8c;
                                                padding: 2px 14px;
                                                line-height: 18px;
                                                border: 1px solid #8c8c8c;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }

                    div {}
                }

            }

            .rightDetail {
                width: 980px;
                float: left;
                margin-left: 8px;
    
                .chooseBox {
                    border: 1px solid #ddd;
                    margin-bottom: 15px;
    
                    h4 {
                        border-bottom: 1px solid #ddd;
                        background: #f1f1f1;
                        color: #333;
                        padding: 5px 0 5px 15px;
                    }
    
                    .listWrap {
                        height: 170px;
                        padding-top: 10px;
    
                        .left {
                            width: 127px;
                            height: 165px;
                            position: relative;
                            float: left;
                            text-align: center;
    
                            img {
                                width: 87px;
                                margin: 0 auto;
                            }
    
                            p {
                                color: #c81623;
                                font-size: 16px;
                            }
    
                            i {
                                position: absolute;
                                top: 48px;
                                right: -25px;
                                font-size: 16px;
                            }
                        }
    
                        .middle {
                            width: 668px;
                            height: 165px;
                            float: left;
                            text-align: center;
    
                            li {
                                width: 127px;
                                margin-left: 20px;
                                margin-right: 20px;
                                float: left;
    
                                img {
                                    width: 120px;
                                    height: 130px;
                                }
    
                                >span {}
    
                                div {
                                    input {}
    
                                    span {}
                                }
                            }
                        }
    
                        .right {
                            border-left: 1px solid #ddd;
                            float: left;
                            width: 153px;
                            height: 165px;
                            padding-left: 20px;
    
                            div {
                                margin-top: 10px;
                                margin-bottom: 10px;
                            }
    
                            p {
                                font-weight: bold;
                                margin-bottom: 10px;
                            }
    
                            i {
                                color: #b1191a;
                                font-size: 16px;
                                margin-bottom: 10px;
                            }
    
                            button {
                                padding: 10px 25px;
                                font-size: 16px;
                                color: #fff;
                                background: #e1251b;
                                border: none;
                            }
    
                        }
                    }
                }
    
    
            }

            .BottomDetail{
                .tabBtn{
                    background: #ededed;
                    .clearfix();
                    li{
                        border-top:1px solid #ddd;
                        border-bottom:1px solid #ddd;
                        border-left:1px solid #ddd;
                        background: #fff;
                        height: 40px;
                        padding-left: 11px;
                        padding-right: 11px;
                        float: left;
                        text-align: center;
                        line-height: 40px;
                        &.active{
                            background: red;
                            border-left:1px solid #ddd;
                            a{
                                color:#fff;
                            }
                        }
                        &:last-child{
                            border-right:1px solid #ddd;
                        }
                        
                    }
                }
                .tabContents{
                    div{
                        padding-left: 20px;
                        line-height: 25px;
                        display: none;
                        &.active{
                            margin: 10px 0;
                            display: block;
                        }
                    }
                }
            }

        
        }

       


    }

    .rightAside{
        width: 300px;
        height: 100%;
        background: #7a6e6e;
        transition: 0.5s;
        position: fixed;
        top:0px;
        &.asideClose{
            right:-294px;
            //right: 0px;
        }
        &.asideOpen{
            right: 0px;
        }
        .btns{
            width: 35px;
            height: 35px;
            background: #7a6e6e;
            border-radius: 5px 0 0 5px;
            left:-29px;
            background-size: 35px 35px;
            position: absolute;
            &.btnsClose{
                background-image: url('../images/list.png');
            }
            &.btnsOpen{
                background-image: url('../images/cross.png');
            }
        }
        .content{
            width: 294px;
            background: bisque;
            position: absolute;
            left:6px;
            top:0px;
            bottom:0px;
            z-index: 50;
        }
        .navlist{
            position: absolute;
            left:-29px;
            top:50%;
            transform: translateY(-50%);
            li{
                width: 35px;
                height: 35px;
                position: relative;
                p{
                    width: 35px;
                    height: 35px;
                    background: #7a6e6e;
                    background-image: url('../images/toolbars.png');
                    background-position: -87px -174px;
                    transition: 0.5s;
                }
                i{
                    width: 62px;
                    height: 35px;
                    text-align: center;
                    line-height: 35px;
                    position: absolute;
                    left:35px;
                    transition: 0.5s;
                    top:0px;
                    background: #7a6e6e;
                }
                &:hover{
                    p{
                        background-color: pink;
                    }
                    i{
                        background-color: pink;
                        left:-62px;
                    }
                }
            }
        }
    }
}